package cn.itsource.product.service;

import cn.itsource.basic.service.IBaseService;
import cn.itsource.product.domain.Product;
import cn.itsource.product.domain.ProductDetail;

import java.util.List;

public interface IProductService extends IBaseService<Product> {

    List<ProductDetail> selectProductDetail(Long id);

    void onsale(List<Product> products);

    void offsale(List<Product> products);

    Product getProductById(Long id);

    /**
     * 批量删除
     * @param products
     */
    void batchRemove(List<Product> products);
}
